float val = 0;
float scale = 1024.0 / 255.0;

void setup() {
	Serial.begin(9600);
}

void loop() {
  val = analogRead(0);
  if (val > 390) {
  Serial.print(val);
  Serial.println("");
  delay(100); 
  }
//  int fadeValue = val * scale;
//  analogWrite(9, fadeValue);
}
